package com.zhj.agent.factory;

import com.zhj.agent.matcher.TypeMatcher;
import com.zhj.agent.resolver.PluginManager;

/**
 * 工厂构建类
 */
public class AgentFactory {

    private PluginManager pluginManager;
    private TypeMatcher<?> typeMatcher;

    public static AgentFactory getInstance() {
        return new AgentFactory();
    }

    public AgentFactory pluginManager(PluginManager pluginManager) {
        this.pluginManager = pluginManager;
        return this;
    }

    public AgentFactory typeMatch(TypeMatcher<?> typeMatcher) {
        this.typeMatcher = typeMatcher;
        return this;
    }

}
